package com.icloud.common.web.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 分页参数
 * Created by im on 2020/6/19.
 */
@Data
@ApiModel("分页参数")
public class CommonPageDto {
    @NotNull
    @ApiModelProperty(value = "第几页", example = "1")
    private Long current = 1L;

    @NotNull
    @ApiModelProperty(value = "每页多少条数据", example = "10")
    private Long pageSize = 10L;
}
